package pojo;

public class sutdent {//为数据库编写以给类
    private int id;
    private String name;
    private  String number;

    public sutdent() {
    }

    public sutdent(int id, String name, String number) {
        this.id = id;
        this.name = name;
        this.number = number;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    @Override//一般需要重写tostring方法
    public String toString() {
        return "学号:" +  id + '\'' +
                "姓名'" + name + '\'' +
                ", 电话：" + number + '\'' ;
    }
}
